exports.replace = function replace(target, el) {
  target.parentNode.replaceChild(el, target)
}

exports.toArray = function toArray (list) {
  var len = list.length
  var ret = new Array(len)
  while (len--) {
    ret[len] = list [len]
  }
  return ret
}
